package com.supermap.IMOCTimerTask;

import com.supermap.imanager.notification.impl.ImocAlerm;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class ImocTimerTest {

	/**
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		Timer timer = new Timer();
		Task task = new Task();
		timer.schedule(task, new Date(), 1800000);
	}
}

class Task extends TimerTask {
	@Override
	public void run() {
		System.out.println("Do heart check......" + System.currentTimeMillis());
		ImocAlerm.getAlerm(null, null, System.currentTimeMillis() + "", null, false);
	}
}
